var str;
str = file_text_read_string(LoadFile);

spos = string_pos('<', str)+1;
epos = string_pos('>', str);
theTagName = string_copy(str, spos, epos-spos);


startpos = string_pos('>', str)+1;
endpos = string_pos('</', str);
str = string_copy(str, startpos, endpos-startpos);
//show_message("RANGE["+string(startpos)+", "+string(endpos)+"] : "+str);
num = is_real(str);

tData = instance_create(0,0,TagData);
tData.name = theTagName;
tData.sval = str;

if (num!=false)
{
    tData.rval = real(str);
}
return tData;
